<?php

namespace App\Http\Repository;

use App\Http\Controllers\common\BaseController;
use App\Models\House;

class HouseDetailRepository extends BaseController
{
    /**
     * @param $id
     * @return false|string
     * Su ang
     * 房源详情开发
     */
    public static function houseDetail($id)
    {
        //房源关联属性
        $data = House::with(['direction','propertyType','houseRoom','houseYear'])->where('id',$id)->get()->toarray();
        return self::retJson('200','成功',$data);
    }
}
